/*
 *   项目名称：rpc-demo
 *   文件名称：com.xiaolon.examplespringbootconsumer.ExampleServiceImpl
 *
 *   创建人：  ZHOU XIAO LONG
 *   创建日期：2024/12/11
 *
 */
package com.xiaolon.examplespringbootconsumer;

import com.xiaolon.example.common.model.User;
import com.xiaolon.example.common.service.UserService;
import com.xiaolon.rpc.springboot.starter.annotation.RpcReference;
import org.springframework.stereotype.Service;

/*
 * 类描述：ExampleServiceImpl
 */
@Service
public class ExampleServiceImpl {

    @RpcReference
    private UserService userService;

    public void test(){
        User user = new User();
        user.setName("xiaolon");
        User resultUser = userService.getUser(user);
        System.out.println(resultUser.getName());
    }
}
